// const RoleManage=()=>{
//     return (
//         <>
//             <h2>角色管理</h2>
//         </>
//     )
// }

// export default RoleManage;



import List from "../components/room/index" //List 是自己定义的名字
import { Button } from "antd";
import { useNavigate } from "react-router-dom"
const RoomManage = () => {
    const navigate = useNavigate();
    const addRoom = () => {
        navigate("/home/room/add");
    }
    return (
        <>
            <h2>客房管理</h2>
            <div style={{ display: 'flex', marginBottom: '20px' }}>
                <Button type="primary" onClick={addRoom} style={{ marginRight: '10px' }}>添加房间</Button>
            </div>

            <List />
        </>
    )
}

export default RoomManage;